﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="freedom.aspx.cs" Inherits="admin_freedom" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>网站管理系统</title>
<link href="img/web.css" rel="stylesheet" type="text/css">
<script>
function CheckForm() {
	var b=false;
	if(document.getElementById("admin").value==""){
		alert("用户名不能为空！");
		document.getElementById("admin").focus();
		b=false;
	}else if(document.getElementById("pwd").value==""){
		alert("密码不能为空！");
		document.getElementById("pwd").focus();
		b=false;
	}else if(document.getElementById("safecode").value==""){
		alert("请输入验证码！");
		document.getElementById("safecode").focus();
		b=false;
	}
	else{
		b=true;
	}
	return b;
}
</script>
</head>
<body background="img/dl_bj.gif">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="100%" align="center" valign="top" background="img/dl_bj.gif">
    <table width="990" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="600" align="center" valign="middle" background="img/dl_bg.gif">
        <table width="400" height="220" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="right" valign="top">
            <table width="300" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="90">&nbsp;</td>
              </tr>
            </table>
			
			<form  id="form1"  method="post" runat="server">
              <table width="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="80" height="24" align="center" valign="middle" class="ts_dlwz">用户名：</td>
                  <td height="24" align="left" valign="middle">
				  <asp:TextBox ID="admin" MaxLength="20" runat="server" CssClass="dl_box1"></asp:TextBox>
				  </td>
                </tr>
                <tr>
                  <td width="80" height="24" align="center" valign="middle" class="ts_dlwz">密　码：</td>
                  <td height="24" align="left" valign="middle">
				  <asp:TextBox ID="pwd" runat="server" MaxLength="20"  CssClass="dl_box1" TextMode="Password"></asp:TextBox>
				  </td>
                </tr>
                <tr>
                  <td width="80" height="24" align="center" valign="middle" class="ts_dlwz">验证码：</td>
                  <td height="24" align="left" valign="middle">
                  <asp:TextBox ID="safecode" CssClass="dl_box2" MaxLength="4" runat="server"></asp:TextBox><span>
                    <asp:Label ID="code" runat="server"></asp:Label>
					</span>
					</td>
                </tr>
              </table>
			 
              <table width="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="35" align="center" valign="middle"><table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="100" height="28" align="center" valign="middle">
				<asp:ImageButton runat="server" ID="imgBut" width="53" height="21" ImageUrl="img/dl_dl.gif" OnClientClick="return CheckForm();" OnClick="login"/>
					  </td>
                      <td width="100" height="28" align="center" valign="middle">
				<asp:ImageButton runat="server" ID="resetImg" width="53" height="21" ImageUrl="img/dl_cz.gif" OnClientClick="javascript:form1.reset();return false;" />
					  </td>
                    </tr>
                  </table></td>
                </tr>
              </table>
			 </form>
              <table width="300" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="30" align="center" valign="middle" class="ts_dlwz2"></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
